<script>
export default {
  name: 'StartTask',
  data() {
    return {
      data: [
        { name: '测试流程', key: 'System_Test_02', desc: '测试流程发起', type: '' }
      ]
    }
  },
  methods: {
    initiatingProcess(item) {
      this.$router.push({
        path: '/task/handle', query: {
          ...item
        }
      })
    }
  }
}
</script>

<template>
  <el-card>
    <el-table :data="data" border size="mini">
      <el-table-column label="流程名称" prop="name" />
      <el-table-column label="流程标识" prop="processKey" />
      <el-table-column label="流程描述" prop="desc" />
      <el-table-column label="流程类型" prop="type" />
      <el-table-column label="操作" width="80" align="center">
        <template #default="{ row }">
          <el-button size="mini" type="text" @click="initiatingProcess(row)">启动</el-button>
        </template>
      </el-table-column>
    </el-table>
  </el-card>
</template>

<style scoped lang="scss">

</style>
